//审计中心下的api
import { get, post } from "@/utils/http";
//审计管理
export const reportListApi = (params) => post("/service/seceval/report/list", params); //审计管理表格数据
export const reportDownloadApi = (params, config) => get("/service/seceval/report/download", params, config); //下载审计报告Q2
export const uploadPictureApi = (params) => post("/service/seceval/report/uploadPicture", params); //系统审计-上传图片
export const followUpApi = (params) => get("/service/seceval/report/followUp", params); //系统审计-跟催

export const assetsDetailApi = (params) => get("/service/seceval/assets/detail", params); //基本信息
export const reportDetailApi = (params) => get("/service/seceval/report/detail", params); //审计进度
export const reportHiveinfoApi = (params) => get("/service/seceval/report/hiveinfo", params); //审计项设定
export const savehiveApi = (params) => post("/service/seceval/report/savehive", params); //保存审计项设定

export const getQuestionsApi = (params) => post("/service/seceval/report/questions", params); //获取调查问卷
export const saveQuestionsApi = (params) => post("/service/seceval/report/saveSceneAnswer", params); //保存调查问卷

export const reportItemsApi = (params) => post("/service/seceval/report/items", params); //审计结果
export const riskUrlsApi = (params) => post("/service/seceval/risk/urls", params); //审计结果url
export const userApi = (params) => get("/service/seceval/assets/user", params); //获取人员信息
export const saveOrSubmitApi = (params) => post("/service/seceval/report/saveOrSubmit", params); //保存或提交审计
export const saveBackStatusApi = (params) => get("/service/seceval/report/saveBackStatus", params); //回退到信息补充阶段
export const reportStopApi = (params) => get("/service/seceval/report/stop", params); //审计终止

// export const reportorApi = (params) => post("/service/seceval/report/reportor", params); //暂不使用  获取审计报告
export const relSceneApi = (params) => get("/manager/config/scene_option/getItemOptions", params); //关联场景
export const addUrlApi = (params) => post("/service/seceval/reportMonitor/addUrl", params); //加白
export const cancelWhiteUrlApi = (params) => post("/service/seceval/reportMonitor/cancelWhiteUrl", params); //取消加白
export const cancelWhiteUrlByIdApi = (params) => post("/service/seceval/reportMonitor/cancelWhiteUrlById", params); //取消白名单(敏感url列表指标标签取消白名单功能)
export const autoScanItemApi = (params) => post("/service/seceval/reportMonitor/autoScanItem", params); //刷新-单项自动化审计任务
export const itemManualApi = (params) => post("/service/seceval/risk/itemManual", params); //人工辅助（审计结果 操作列 点击详情按钮使用）

//监控管理
export const monitorListApi = (params) => post("/service/seceval/reportMonitor/list", params); //监控列表
export const monitorDetailApi = (params) => post("/service/seceval/reportMonitor/detail", params); //监控详情
export const monitorStartApi = (params) => get("/service/seceval/reportMonitor/start", params); //发起监控扫描
export const monitorGetItemsApi = (params) => get("/service/seceval/reportMonitor/getItems", params); //获取监控指标
export const listAllTinyRiskApi = (params) => get("/manager/config/item/list_all_tiny_risk", params); //风险列表名称下拉数据

// 专项审计
export const reportSubsystemListApi = (params) => post("/service/subsytem/report/list", params); //审计列表
export const reportSubsystemStopApi = (params) => get("/service/subsytem/report/stop", params); //终止审计
export const assetSubsystemDetailApi = (params) => get("/service/subsytem/asset/detail", params); //查看资产详情
export const assetSubsystemUploadEvidence = (params) => post("/service/subsytem/report/uploadEvidence", params); //上传证据
export const assetSubsystemSaveOrSubmitApi = (params) => post("/service/subsytem/report/saveOrSubmit", params); //保存或提交审计结果
export const assetSubsystemReportDetailApi = (params) => get("/service/subsytem/report/detail", params); //审计详情
export const assetSubsystemReportItemsApi = (params) => post("/service/subsytem/report/items", params); //审计详情审计项列表
export const saveSubsystemBackStatusApi = (params) => get("/service/subsytem/report/saveBackStatus", params); //回退信息补充

// 专项监控
export const subsystemMonitorListApi = (params) => post("/service/subsytem/monitor/list", params); //监控列表
export const subsystemMonitorStartApi = (params) => get("/service/subsytem/monitor/start", params); //发起监控扫描
export const subsystemMonitorGetItemsApi = (params) => get("/service/subsytem/monitor/getItems", params); //获取监控指标
export const subsystemMonitorDetailApi = (params) => post("/service/subsytem/monitor/detail", params); //获取监控详情
